// 设置定时开关机
import React from 'react';
import { View, WebView } from 'react-native';
import pxSize from '../util/pxSize';
import { TitleBar } from 'miot/ui';
export default class CQJWebView extends React.Component {

  constructor(props) {
    super(props);

    this.state = {

    };
  }

  render() {
    return (
      <View style={{ height: "100%", width: "100%", overflow: 'hidden' }}>
        <TitleBar
          type="dark"
          title={"未找到蓝牙网关"}
          style={{ height: pxSize(65), backgroundColor: "#fff" }}
          onPressLeft={() => { this.props.navigation.goBack(); }}
  
        />

        <WebView
          source={{ uri: 'https://home.mi.com/views/article.html?articleId=88751582000000001' }}
          style={{ width: '100%', height: "100%" }}
          javaScriptEnabled={true}
          domStorageEnabled={true}
          scalesPageToFit={true}
          originWhitelist={['*']}
        />
      </View>
    );
  }

}



